package com.wwf.myblog.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * @author lulei
 * @date 2020年12月10日 15:23:49
 */
@Component
public class TestValue {
    @Value("${testvalue.id}")
    private Integer id;
    @Value("${testvalue.id}")
    private Integer username;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUsername() {
        return username;
    }

    public void setUsername(Integer username) {
        this.username = username;
    }

    @Override
    public String toString() {
        return "TestValue{" +
                "id=" + id +
                ", username=" + username +
                '}';
    }
}
